package com.meizi.lushi.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.meizi.core.tool.api.PageUtils;
import com.meizi.core.tool.api.Query;
import com.meizi.lushi.dao.InRaceDao;
import com.meizi.lushi.entity.InRaceEntity;
import com.meizi.lushi.service.InRaceService;


@Service("inRaceService")
public class InRaceServiceImpl extends ServiceImpl<InRaceDao, InRaceEntity> implements InRaceService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<InRaceEntity> page = this.page(
                new Query<InRaceEntity>().getPage(params),
                new QueryWrapper<InRaceEntity>()
        );

        return new PageUtils(page);
    }

}